﻿using System;

namespace _05_Ex05
{
    class Program
    {
        static void Main(string[] args)
        {
            string myString = "This is a test.";
            char[] separator = { ' ' };
            string[] myWords;
            myWords = myString.Split(separator);
            foreach (var word in myWords)
            {
                Console.WriteLine($"{word}");
            }
            Console.ReadKey();

        }
    }
}
